/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.sistemas.sse.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Proxy;

/**
 *
 * @author laptop-w8
 */
@Entity
@Table(name = "MEGRES_IDM")
@Proxy(lazy = false)
public class EgresadoIdioma implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "CIDM")
    private long id_idioma;
    @Column(name = "DNM_IDM")
    private String dnombre;
    @Column(name = "DNIV_IDM")
    private String dnivel;
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "DCODALMN_EGRES", referencedColumnName = "DCODALMN_EGRES", nullable = false)
    private Egresado egresado;

    public long getId_idioma() {
        return id_idioma;
    }

    public void setId_idioma(long id_idioma) {
        this.id_idioma = id_idioma;
    }

    public String getDnombre() {
        return dnombre;
    }

    public void setDnombre(String dnombre) {
        this.dnombre = dnombre;
    }

    public String getDnivel() {
        return dnivel;
    }

    public void setDnivel(String dnivel) {
        this.dnivel = dnivel;
    }

    public Egresado getEgresado() {
        return egresado;
    }

    public void setEgresado(Egresado egresado) {
        this.egresado = egresado;
    }

}
